import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询job列表
export function listJob(query) {
  return request({
    url: '/sysFunctions/jobViews/list',
    method: 'get',
    params: query
  })
}
// 根据条件导出job列表
export function exportList(query) {
  return request({
    url: '/sysFunctions/jobViews/exportList',
    method: 'get',
    params: query
  })
}
// 实时爬取
export function doSpider(condition) {
  return request({
    url: '/sysFunctions/jobSpider/doSpider',
    method: 'get',
    params: condition
  })
}
//异步爬取
export function doAynSpider(condition) {
  return request({
    url: '/sysFunctions/jobSpider/doAynSpider',
    method: 'get',
    params: condition
  })
}
//预测工资
export function doPredictSalary(condition) {
  return request({
    url: '/sysFunctions/doPredictSalary',
    method: 'get',
    params: condition
  })
}


